﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataSync.Entity
{
    public class LineParseConfig : CollectConfigBase
    {
        /// <summary>
        /// 采集字段列表
        /// </summary>
        public List<ParseField> Fields { get; set; }

        /// <summary>
        /// 字典翻译
        /// </summary>
        public Dictionary<string, List<DataEnumItem>> DataEnums { get; set; }

        /// <summary>
        /// 排除过滤
        /// </summary>
        public List<FilterField> ExcludeFilters { get; set; }
    }

    public class DataEnumItem
    {
        public string Key { get; set; }
        public string Value { get; set; }
    }

    public class CustParseExtData
    {
        public Dictionary<string, string> DicData { get; set; }
        public Dictionary<string, List<DataEnumItem>> DataEnums { get; set; }
    }

    public class FilterField
    {
        public string Col { get; set; }
        public int Index { get; set; }
        public string Value { get; set; }
    }
}
